package com.wsh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
@ComponentScan(
        basePackages = {"com.wsh"},
        excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,
            value = {com.wsh.utils.SecurityUtils.class,
                    com.wsh.utils.EncryptUtils.class,
                    com.wsh.utils.RedisUtils.class
            }
        )
)
public class GeneratorApplication {
    public static void main(String[] args) {
        SpringApplication.run(GeneratorApplication.class);
    }
}
